package base.chap2;

/**
 * ${DESCRIPTION}
 *
 * @author luoyalan
 * @date 2018/9/11
 */
public class AccountTester {
    public static void main(String[] args) {
        BankAccount bankAccount = new BankAccount("neo",10001,0);
        System.out.println(bankAccount);
        System.out.println(bankAccount.getClass().getName());

        C c = new C();
        A a = new A();
        c.method();
        a.method(2);
    }
}

class C {
    final public int method() {
        System.out.println("a");
        return 0;
    }
}

class A extends C {
    final public int method(int x) {
        System.out.println(x);
        return 0;
    }
}

abstract class D {
    abstract void method();
}